/*
 * Copyright (C) 2025 Huawei Device Co., Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#ifndef OHOS_GRPC_NODE_HTTP2_CONSTANT_H
#define OHOS_GRPC_NODE_HTTP2_CONSTANT_H

const int NUM_1 = 1;
const int NUM_2 = 2;
const int NUM_3 = 3;
const int NUM_4 = 4;
const int NUM_5 = 5;
const int NUM_8 = 8;
const int NUM_10 = 10;
const int NUM_31 = 31;
const int NUM_36 = 36;
const int NUM_50 = 50;
const int NUM_126 = 126;
const int NUM_1000 = 1000;
const int NUM_1024 = 1024;
const int NUM_200 = 200;
const int NUM_100 = 100;
const int NUM_600 = 600;
const int NUM_30000 = 30000;
const int NUM_65535 = 65535;
const int NUM_16384 = 16384;
const int MAX_ALLOC_SIZE = 9999999;
const int HTTP_STREAM_CALLBACK_TYPE_RESPONSE = 1;
const int HTTP_STREAM_CALLBACK_TYPE_RESPONSE_DATA_TRUNCK = 2;
const int HTTP_CALLBACK_TYPE_CLOSE = 3;
const int HTTP_STREAM_CALLBACK_TYPE_END = 4;
const int HTTP_STREAM_CALLBACK_TYPE_ERROR = 5;
const int HTTP_STREAM_CALLBACK_TYPE_GOWAY = 6;
const int STR_DEFAULT_SIZE = 2048;
const int INDEX_0 = 0;
const int INDEX_1 = 1;
const int INDEX_2 = 2;
const int INDEX_3 = 3;
const int INDEX_4 = 4;
const int INDEX_5 = 5;
const int INDEX_6 = 6;
const int INDEX_7 = 7;
const int PARAM_COUNT_0 = 0;
const int PARAM_COUNT_1 = 1;
const int PARAM_COUNT_2 = 2;
const int PARAM_COUNT_3 = 3;
const int PARAM_COUNT_4 = 4;
const int PARAM_COUNT_5 = 5;
const int PARAM_COUNT_6 = 6;
const int PARAM_COUNT_7 = 7;
const int PARAM_COUNT_8 = 8;
#define UNARY_STREAM_RPC 1
#define WRITABLE_STREAM_RPC  2
#define READABLE_STREAM_RPC  3
#define DUPLEX_STREAM_RPC  4
#endif // OHOS_GRPC_NODE_HTTP2_CONSTANT_H
